#ifndef _INST_H_
#define _INST_H_

struct par_rec {
    unsigned char bootable;
    unsigned char s_chs[3];
    unsigned char type;
    unsigned char e_chs[3];
    unsigned int lba;
    unsigned int length;
};

struct par_table {
    struct par_rec par[4];
};

struct stage1 {
	char nil[8];
	unsigned int dap1;
	unsigned int dap_maddr; 
	unsigned long long dap_lba;
	char name[16];
	char nil2[446-(40)];
	unsigned char pt[64]; //partition table
	unsigned short sign;
};

struct stage2 {
	char nil[2];
	short magic;
	char nil2[444];
	char lab1[16];
	char lab2[16];
	char lab3[16];
	char lab4[16];
};

#endif
